
export default{
	
	
	
	 wx:function(timeStamps,nonceStrs,packages,signTypes,paySigns){
		 return new Promise((resolve, reject) => {
			uni.requestPayment({
			    provider: 'wxpay',
			    timeStamp: timeStamps,
			    nonceStr: nonceStrs,
			    package: packages,
			    signType: signTypes,
			    paySign: paySigns,
			    success: function (res) {		
			       resolve(res);
			    },
			    fail: function (err) {
					uni.redirectTo({
						url:"../../pages/orderList/index"
					})
						reject(err);
			    },
					complete: res => {
						console.error(res)
					}
			});
		})
	}
}